/***************************************************************************
 *            texture.h
 *
 *  Wed Oct  8 10:50:28 2008
 *  Copyright  2008  Tiago Falcao
 *  <developer@tiagofalcao.com>
 ****************************************************************************/

/*
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Library General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor Boston, MA 02110-1301,  USA
 */
 
#ifndef TEXTURE_H
#define TEXTURE_H

#include <GL/gl.h>
#include <GL/glu.h>
#include <stdlib.h>
#include <string.h>
#include "SOIL.h"

typedef unsigned int uint;

typedef struct texture{
	GLuint id;
	char * file;
	//GLubyte*** image;
	//uint w,h;
}texture;

typedef struct texture_manager{
	uint qtd;
	texture * texs;
}texture_manager;

texture_manager * texture_manager_create();

uint texture_manager_get(texture_manager * manager, char * file);

void texture_manager_delete(texture_manager * manager);

uint texture_manager_add(texture_manager * manager, char * file);

//GLubyte*** texture_image_create(uint w,uint h);

//void texture_image_delete(GLubyte*** image,uint w,uint h);

#endif /* TEXTURE_H */

